Before you can build a Kanzi application for your target platforms, set up and configure the Kanzi build environment for your target platforms. The build environment includes tools that the Kanzi build system uses to build your application for your target platforms.
The most convenient way to build Kanzi applications for Linux is to do the building on Linux. If you have the Linux toolchain for Windows, you can build Kanzi applications for Linux on Windows. In that case point the Kanzi build scripts to that toolchain. See Installing the Kanzi build environment manually.
You can configure the input event devices that Kanzi listens to on Linux ports where the native windowing system does not provide input device handling. See Input event devices on Linux.
SCons runs the SConstruct file in the configuration directory of the platform from which you run the scons
command. SConstruct file is the entry point for building the application and contains the information about the Kanzi Engine location and runs these files:
To build Kanzi applications for Linux:
scons
command with the build parameters for your Kanzi application.Syntax | scons <library> <type> <name> | ||||||
Parameters |
| ||||||
Examples |
// Builds the application with the default settings as specified
// in config.py and SConstruct configuration files.
scons
// Builds the debug version of the application with
// the OpenGL graphics library.
scons GL debug
// Builds the debug version of the application with the
// OpenGL ES 2.0 graphics library from the Kanzi Studio
// project named MyProject.
scons ES2 debug MyProject |
Scons builds the Kanzi application source code and binary files in the <ProjectName>/Application/output directory.